// swift-tools-version:5.1
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "lwip",
    products: [
        // Products define the executables and libraries a package produces, and make them visible to other packages.
        .library(
            name: "lwip",
            targets: ["LwIP"]),
        .library(
            name: "clwip",
            targets: ["CLwIP"])
        

    ],
    dependencies: [
        // 在这里添加你的依赖项
        .package(url: "https://github.com/apple/swift-nio.git", from: "2.68.0"),
        .package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
        // 例如添加 lwIP 库的 Swift 包
        // .package(url: "https://github.com/user/lwip.git", from: "1.0.0"),
    ],
    targets: [
        .target(name: "LwIP", dependencies:[
            "CLwIP",
            "NIO",
            .product(name: "Logging", package: "swift-log"),
        ]),
        .target(name: "CLwIP",
                cSettings: [
//                    .headerSearchPath("config"),
                    .headerSearchPath("include"),
                    ]
                ),
        .testTarget(name: "LwIPTests", dependencies: ["LwIP"])
    ]
)
